﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ChinaSoft.BLL.Common;

namespace Admin.Handler
{
    /// <summary>
    /// GridView 的摘要说明
    /// </summary>
    public class GridView : IHttpHandler
    {
        private static System.Web.Script.Serialization.JavaScriptSerializer serializer = new System.Web.Script.Serialization.JavaScriptSerializer();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            var json = FlexigridUtils.QueryDataForFlexGridByPager(context);
            string result = serializer.Serialize(json);
            context.Response.Write(result);
            context.Response.End(); 
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}